package com.edfu.core.institutemgt.persistence.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @author sahsharm
 *
 */
@Entity
@Table(name="semester_batch")
public class AcadSemBatchRelnEntity implements IInstituteMgtEntity {
	private long id;
	private BatchEntity batch;
	private AcadSemEntity semester;
	private Date startsOn;
	private Date endsOn;
	private String status;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	@ManyToOne
	@JoinColumn(name = "batch_id", nullable = false)
	public BatchEntity getBatch() {
		return batch;
	}
	public void setBatch(BatchEntity batch) {
		this.batch = batch;
	}
	
	@ManyToOne
	@JoinColumn(name = "sem_id", nullable = false)
	public AcadSemEntity getSemester() {
		return semester;
	}
	public void setSemester(AcadSemEntity semester) {
		this.semester = semester;
	}
	public Date getStartsOn() {
		return startsOn;
	}
	public void setStartsOn(Date startsOn) {
		this.startsOn = startsOn;
	}
	public Date getEndsOn() {
		return endsOn;
	}
	public void setEndsOn(Date endsOn) {
		this.endsOn = endsOn;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
}
